const mongoose = require('mongoose')
const schema = new mongoose.Schema({
  parent: { type: mongoose.Schema.Types.ObjectId, ref: 'Category' },
  name: { type: String, required: true },
})

module.exports = mongoose.model('Category', schema)
